home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94a.txt
/
000077_icon-group-sender _Mon Apr 4 13:03:45 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-19
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 4 Apr 1994 15:28:34 MST
Date: Mon, 04 Apr 1994 13:03:45 -0600 (CST)
From: Chris Tenaglia - 257-8765 <TENAGLIA@MIS.MCW.EDU>
Subject: 2d arrays in icon
To: icon-group@cs.arizona.edu
Message-Id: <01HAS0FEAPNM8WWQ0I@mis.mcw.edu>
Organization: Medical College of Wisconsin (Milwaukee, WI)
X-Vms-To: IN%"icon-group@cs.arizona.edu"
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Transfer-Encoding: 7BIT
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
I have done it by constructing a key using the axes and a delimiter.
xy := table(0)
seed := 64
every i := 1 to 10 do
every j := 1 to 10 do
xy[i||","||j] := mandel(i,j,seed)
write(xy["5,5"])
I think the delimited key is the most natural as long as you can be sure the
key representation is reliable and consistent. Leading zeroes or decimal
points would cause mischief. The delimited index will also work in a string
parsing array. Uniqueness is still the important factor. Case and spaces are
the pitfalls in this regard. Good luck.
Chris Tenaglia (System Manager) | "The past explained,
Medical College of Wisconsin | the future fortold,
8701 W. Watertown Plank Rd. | the present largely appologized for."
Milwaukee, WI 53226 | Organon to The Doctor
(414)257-8765 |
tenaglia@mis.mcw.edu
> From: IN%"thssjlb@iitmax.acc.iit.edu" 4-APR-1994 11:42:43.57
> To: IN%"tenaglia@MIS.MCW.EDU"
> Subj: Help with tw-dimensional table...
> Hello, I'm having trouble creating a two-dimensional array for parser
> program I am writing. How do I create one? or is there another way
> that is better. Thank you for your time.
> ------------------------------------------------------------------------------
> | John L Buntic | "Health nuts are going to feel stupid one day,|
> | thssjlb@iitmax.acc.iit.edu | lying in hospital beds dying of nothing." |
> | If it feels good, do it! | -Redd Foxx|
> ------------------------------------------------------------------------------